import Circle from '@/base/Circle';
import XUE from '../XUE';

XUE.registerComponent('circle', {
    name: '圆形',
    getEntity(canvas, defaultStyle) {
        return new Circle(canvas, {
            radius: '50%',
            left: '50%',
            bottom: '50%',
            width: '100%',
            height: '100%',
        });
    },
    defaultStyle: {
        left: '240px',
        bottom: '240px',
        width: '240px',
        height: '240px',
        color: '#32B4FF',
        type: Circle.TYPE.FILL,
    },
});
